<!DOCTYPE html>
{% load i18n %}
<html lang="zh-CN">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <link rel="shortcut icon" type="image/png" href="/static/favicon.ico"/>
    <link rel="apple-touch-icon" href="/static/apple-touch-icon.png">
    <title>{% trans '激活' %}</title>
    <link rel="stylesheet" href="https://unpkg.com/mobi.css/dist/mobi.min.css">
    <style>
        a {
            color: red;
            font-size: 250%;
            text-align: center;
            background-color: #fff;
            border-radius: 20px;
            height: 350px;
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%,-50%);
        }
    </style>
</head>

<body>
    {% if ret == 1 %}
    <script language="javascript" type="text/javascript">
        setTimeout("javascript:location.href='https://niubiex.com/users/login/'", 5000);
    </script>
    <a href="https://niubiex.com/users/login/">{% trans '激活成功，请登陆' %}</a>
    {% elif ret == 2 %}
    <script language="javascript" type="text/javascript">
        setTimeout("javascript:location.href='https://niubiex.com/users/register/'", 5000);
    </script>
    <a href="https://niubiex.com/users/register/">{% trans '用户不存在，请注册' %}</a>
    {% elif ret == 3 %}
    <script language="javascript" type="text/javascript">
        setTimeout("javascript:location.href='https://niubiex.com/users/register/'", 5000);
    </script>
    <a href="https://niubiex.com/users/register/">{% trans '已超时，请重新注册' %}</a>
    {% endif %}
</body>
</html>

